package cn.edu.scnu.springbootcinema.controller;

import cn.edu.scnu.springbootcinema.service.ReportService;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ReportController {

    @Resource
    private ReportService reportService;
    @GetMapping("/export")
    public void exportFilmRanking(HttpServletResponse response)
    {
        reportService.exportFilmRanking(response);
    }
}
